package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.NewEnergyReportMapper;
import com.ruoyi.mes.domain.NewEnergyReport;
import com.ruoyi.mes.service.INewEnergyReportService;

/**
 * 能源合规报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
@Service
public class NewEnergyReportServiceImpl implements INewEnergyReportService 
{
    @Autowired
    private NewEnergyReportMapper newEnergyReportMapper;

    /**
     * 查询能源合规报
     * 
     * @param reportId 能源合规报主键
     * @return 能源合规报
     */
    @Override
    public NewEnergyReport selectNewEnergyReportByReportId(Long reportId)
    {
        return newEnergyReportMapper.selectNewEnergyReportByReportId(reportId);
    }

    /**
     * 查询能源合规报列表
     * 
     * @param newEnergyReport 能源合规报
     * @return 能源合规报
     */
    @Override
    public List<NewEnergyReport> selectNewEnergyReportList(NewEnergyReport newEnergyReport)
    {
        return newEnergyReportMapper.selectNewEnergyReportList(newEnergyReport);
    }

    /**
     * 新增能源合规报
     * 
     * @param newEnergyReport 能源合规报
     * @return 结果
     */
    @Override
    public int insertNewEnergyReport(NewEnergyReport newEnergyReport)
    {
        return newEnergyReportMapper.insertNewEnergyReport(newEnergyReport);
    }

    /**
     * 修改能源合规报
     * 
     * @param newEnergyReport 能源合规报
     * @return 结果
     */
    @Override
    public int updateNewEnergyReport(NewEnergyReport newEnergyReport)
    {
        return newEnergyReportMapper.updateNewEnergyReport(newEnergyReport);
    }

    /**
     * 批量删除能源合规报
     * 
     * @param reportIds 需要删除的能源合规报主键
     * @return 结果
     */
    @Override
    public int deleteNewEnergyReportByReportIds(Long[] reportIds)
    {
        return newEnergyReportMapper.deleteNewEnergyReportByReportIds(reportIds);
    }

    /**
     * 删除能源合规报信息
     * 
     * @param reportId 能源合规报主键
     * @return 结果
     */
    @Override
    public int deleteNewEnergyReportByReportId(Long reportId)
    {
        return newEnergyReportMapper.deleteNewEnergyReportByReportId(reportId);
    }
}
